#include "gt_entry.h"

#if __linux
#include <sys/stat.h>
#endif

// ok
void display_entry(entry_t *entry, search_t *search, int y,
                   int is_cursor_on_entry) {
  entry->vtable->display(entry, search, y, is_cursor_on_entry);
}

// ok
void free_entry(entry_t *entry) { entry->vtable->free(entry); }

// ok
int is_entry_selectable(entry_t *entry) {
  return entry->vtable->is_selectable(entry);
}

// ok
void *get_type(entry_t *entry, entry_type_t type) {
  return entry->vtable->get_type(entry, type);
}